<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href='<?php echo  base_url(); ?>css/main.css' type="text/css"/>  
<script charset="utf-8" src="<?php echo  base_url(); ?>js/jquery.min.js"></script> 
<script charset="utf-8" src="<?php echo  base_url(); ?>kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<?php echo  base_url(); ?>kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">

 var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#editor_id',{
				 filterMode : false, //不会过滤HTML代码
				 urlType :"http://z.no4e.com/",

				});
        });

</script>

</head>

<body>
 <div  class="content">
   <form method="post" enctype="multipart/form-data">
   
   	<table>
        <tr>
        	<td class="right" >分类名称</td>
            <td class="left">
            	<select name="type_name" >
                <?php foreach($type_info  as $ti){  ?>
                <option value="<?php echo $ti['id']; ?>"   <?php if($result['type_id']==$ti['id']){ ?> selected="selected"<?php } ?>> <?php echo $ti['type_name']; ?></option>
                 <?php } ?>
                  <?php  ?>
                </select>
            </td>
        </tr>
    	<tr>
        	<td class="right">新闻标题</td>
            <td class="left"><input type="text" name="title"  value="<?php echo $result['title']?>"/></td>
        </tr>
        <tr>
        	<td class="right">新闻内容</td>
            <td class="left"><textarea id="editor_id"  name="content" style="width:500px;height:250px;"><?php echo $result['content']?></textarea></td>
        </tr>
        <tr>
        	<td class="right">附件标题</td>
            <td class="left"><input type="text" name="attachment_title"  value="<?php echo $result['attachment_title']?>"/></td>
        </tr>
        <tr>
        	<td class="right">上传附件</td>
            <td class="left"><input type="file" name="attachment_file" /></td>
        </tr>
        <tr>
            <td class="right">是否加入公共信息</td>
            <td class="left"><!--<input type="radio" name="is_common" value="1" <?php if($result['is_common']==1){ ?> checked="checked"<?php } ?> />是<input type="radio" name="is_common" value="0" <?php if($result['is_common']==0){ ?>checked="checked" <?php } ?> />否--></td>
        </tr>
        <tr>
        	<td colspan="2" align="center"><?php if($act=='add'){?> <input type="submit" value="添加" /><?php }elseif($act=='edit'){ ?><input type="submit" value="修改" /><?php }?></td>
           
        </tr>
       <!-- <tr>
        	<td></td>
            <td></td>
        </tr>-->
    </table>
   </form>
</div>
</body>
</html>